#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pycentral

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

LIBDIR := /usr/lib/python*/site-packages/Epigrass

install/epigrass::
	sed '1s/python.*/python/' $(DEB_DESTDIR)/usr/bin/epigrass.py > \
	  $(DEB_DESTDIR)/usr/bin/epigrass
	$(RM) $(DEB_DESTDIR)/usr/bin/epigrass.py
	chmod a-x $(DEB_DESTDIR)$(LIBDIR)/*

get-orig-source:
	uscan --upstream-version 0

